﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MultCmpList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SysMgr.MultCmpList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>经销商多公司名称管理</title>
</head>
<body>
     <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
        <f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <f:Region ID="Region1" ShowBorder="false" ShowHeader="false"  Width="400px" Position="Left" Layout="Fit" BodyPadding="5px" runat="server">
                    <Items>
                        <f:Grid ID="gdPar" runat="server" ShowBorder="true" ShowHeader="true"  Title="现有经销商列表"  DataKeyNames="UserId" AllowSorting="true"  SortField="UserId" SortDirection="DESC"  OnRowCommand="gdPar_RowCommand" >
                            <Toolbars>                                
                                <f:Toolbar ID="Toolbar2" runat="server">
                                    <Items> 
                                        <f:Button ID="btnResetPar" Text="重置数据" EnablePostBack="false" runat="server"></f:Button>
                                        <f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
                                    </Items>
                                </f:Toolbar>
                            </Toolbars>
                            <Columns>
                                <f:RowNumberField Width="35px" EnablePagingNumber="true"></f:RowNumberField>
                                <f:BoundField DataField="Department" HeaderText="经销商" ExpandUnusedSpace="true"/>                                
                                <f:LinkButtonField CommandName="ViewSub" HeaderText="显示明细项" TextAlign="Center" Width="80px" Icon="ApplicationGo" />
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:Region>
                <f:Region ID="Region2" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BodyPadding="5px 5px 5px 0" runat="server">
                    <Items>                       
                        <f:Grid ID="gdSub" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="true"  Title="关联公司简称(ERP)"  DataKeyNames="ID" AllowSorting="true" SortField="UserId" SortDirection="DESC" AllowCellEditing="true" ClicksToEdit="1" OnPreDataBound="gdSub_PreDataBound">
                            <Toolbars>
                                <f:Toolbar ID="Toolbar1" runat="server">
                                    <Items>
                                        <f:Button ID="btnAddSub" runat="server" Icon="Add" EnablePostBack="true" Text="添加">
                                        </f:Button>
                                        <f:Button ID="btnResetSub" Text="重置数据" EnablePostBack="false" runat="server"></f:Button>
                                        <f:ToolbarFill ID="ToolbarFill3" runat="server"></f:ToolbarFill>
                                        <f:Button ID="btnSaveSub" runat="server" Text="保存变更" OnClick="btnSaveSub_Click"></f:Button>
                                    </Items>
                                </f:Toolbar>
                            </Toolbars>                            
                            <Columns>
                                <f:RowNumberField></f:RowNumberField>
                                <f:RenderField  ColumnID="Title2" DataField="AgentName" FieldType="String" HeaderText="关联公司简称" ExpandUnusedSpace="true" >
                                    <Editor>
                                        <f:TextBox ID="tbxSubTitle" Required="true" runat="server">
                                        </f:TextBox>
                                    </Editor>
                                </f:RenderField>                              
                                <f:LinkButtonField ColumnID="Delete2" HeaderText="删除" Width="80px" EnablePostBack="false" Icon="Delete" />
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:Region>
            </Regions>
        </f:RegionPanel>        
    </form>
</body>
</html>
